<div class="col_02" id="rightside">
	<div class="col_02_01" id="sysContent_box">
		<div class="main-wrap">
			<div class="m-t">
				<h2>Submit a Candidate</h2>
			</div>
			<div class="m-c">
				<h5>To submit a candidate, you must first select a candidate from your list of candidates below. Use the search fields below to find your candidate. To add a new candidate to your database, click on "Add Candidate"   below.</h5>
			</div>
		</div>
	</div>
	<div class="col_02_02" id="side_box">
	<div class="signIn">
		<h2 class="m_t m_t_gray">Member  Center</h2>
		<div class="m_c">
			<div class="mySigned" id="J_sign_form">
				<div id="loginboxx">
					<p class="info">Welcome, <span class="u_name">{$uname}</span>!</p>
					<p class="lnk_panel"><a href="settings.php" class="lnk_arrow">My Account</a></p>
					
					<p class="lnk_panel"><a href="#" onclick="return ajax_out()" class="lnk_arrow">Sign Out</a><div id="loadp"></div></p>
				</div>
			</div>
		</div>
		<div class="m_f"></div>
	</div>
</div>
<div class="clearfix"></div>

<div class="module_box">
	<div class="m_t"><h2>Job Details</h2></div>
	  <table width="100%" border="0" cellpadding="4" cellspacing="1" class="tableGrey">
        <tr>
		<th>ER Job Req#</th>
		<th>Job Poster</th>
		<th>Create Date</th>
		<th>Last Updated</th>
		<th>Valid By</th>
		<th>Job Title</th>
		<th>Job Status</th>
              </tr>
              <tr class="hotline {cycle values="odd,even"}">
                <td><a href="jobaction.php?action=view&view=op&id={$jobarr.jo_id}" target="_blank">{$jobarr.jo_id}</a></td>
                <td>{$jobarr.jo_copname}</td>
		<td>{$jobarr.jo_regtime}</td>
                <td>{$jobarr.jo_updtime}</td>
                <td>{$jobarr.jo_vdate}</td>
		<td>{$jobarr.jo_title}</td>
		<td>{$jobarr.jo_status}</td>
              </tr>
          </table>
</div>
{if $onlyreid == ""}
<link rel="stylesheet" type="text/css" media="all" href="jscalendar/calendar-brown.css" title="win2k-cold-1" />
<script type="text/javascript" src="jscalendar/calendar.js"></script>
<script type="text/javascript" src="jscalendar/lang/calendar-en.js"></script>
<script type="text/javascript" src="jscalendar/calendar-setup.js"></script>
<div id="mc" style="width:784px">
<hr />
	<div class="m_t mt_10"><h2>Search My Candidates</h2></div>
	<h5>(You may submit one candidate at a time. To add a new candidate to your database, click on "Add Candidate" below.)</h5>
        <form action=""  method="GET" name="search" >
		<table class="table_style">
			<tr>
				<td colspan="2">Resume Keywords:<br /><input  type="text" name="keywords" size="60" maxlength="200" value="{$s.keywords}" >
				</td>
				<td>Create Date:
					<input  type="text" name="postdate" size="20" id="f_date_c" readonly value="{$s.postdate}"><img src="images/img.gif" id="f_trigger_c" style="cursor: pointer; border: 0px solid red;" align="absmiddle" title="Date selector" />
					{literal}
					<script type="text/javascript">
					Calendar.setup({
						inputField     :    "f_date_c",     // id of the input field
						ifFormat       :    "%m/%d/%Y",      // format of the input field
						button         :    "f_trigger_c",  // trigger for the calendar (button ID)
						align          :    "Tl",           // alignment (defaults to "Bl")
						singleClick    :    true
					});
					</script>
					{/literal}
				</td>
				 <td>Job Industry:
					<select name="industry" size="">
						{html_options selected=$s.industry options=$industry}
					</select>
				</td>
			</tr>
			<tr>
				<td>Job Title:</td>
				<td>City:</td>
				<td>State:</td>
				<td>Country:</td>
			</tr>
			<tr>
			       <td>
					<input  type="text" name="jobtitle" size="25" maxlength="200" value="{$s.jobtitle}">
				</td>
				<td>
					<input  type="text" name="city" size="25" maxlength="200" value="{$s.city}">
				</td>
				<td>
					<select name="state" >
						{html_options selected=$s.state options=$state}
					</select>
				</td>
				<td>
					<select name="country" size="" style=" width:200px;">
						{html_options selected=$s.country options=$country}
					</select>
				</td>
			</tr>
			<tr>
			    <td>First/Last Name:</td>
			    <td>Professional License:</td>
				<td>Job Type:</td>
				<td>Sort Results By:</td>
			</tr>
			<tr>
			     <td>
					<input  type="text" name="name" size="25" maxlength="200" value="{$s.name}">
				</td>
				 <td>
					<input  type="text" name="certif" size="25" maxlength="200" value="{$s.certif}">
				</td>
				<td>
					<select name="jobtype" size="">
						{html_options selected=$s.jobtype options=$jobtype}
					</select>
				</td>
				<td>
					<select name="orderby" size="">
						{html_options selected=$s.orderby options=$rec_findapplicant}
					</select>
				</td>
			</tr>
			<tr>
			        <td colspan="4" align="left">
					<input  type="checkbox" name="alias" value="1" {if $s.alias==1}checked{/if}> Check to include alias records
				</td>
			</tr>
			<tr>
				<td colspan="4" align="center">
					<input name="action" value="search" type="hidden" />
					<input class="bginput button-secondary" accesskey="y" type="submit" name="submit" value=" Search " />
					<input name="jid" value="{$jid}" type="hidden" />
					<input class="bginput button-secondary" accesskey="r" type="button" name="Input" value=" Clear "  onclick="turnto('submitapplicant.php?jid={$jobarr.jo_id}')" />
				</td>
			</tr>
		</table>
	</form>

{/if}
{literal}
<script>
	function ckeckapplicant(cp){
	     var js = null;
	     var cp;
	     for(var i=0;i<document.getElementsByName('postid').length;i++){
	         if(document.getElementsByName('postid')[i].checked == true){
		   js  = document.getElementsByName('postid')[i].value ;
		 }
	     }
	    if(js==null){
	      alert("You need to first select a candidate.");
	      return false; 
	    }
		document.getElementById('form1').submit();
	}

	function checkDiffResume(){
		var is_checked = document.getElementById('app_includresume').checked;
		if(is_checked == true){
			document.getElementById('app_incresume').disabled = true;
		}else{
			document.getElementById('app_incresume').disabled = false;
		}
	}
</script>
{/literal}
<div class="mt_10">
	<div class="m_t"><h2>Search Results:</h2>   
	<form action="submitsuccess.php" id="form1" name="form1" method="POST" onsubmit="return ckeckapplicant({$jobarr.jo_type});" enctype="multipart/form-data">
	<input type="hidden" name="jid" value="{$jobarr.jo_id}">
	{$page} 
	  <table width="100%" cellspacing="1" cellpadding="4" border="0" class="table_style_noline" >
              <tr class="tbhead">
	        <th>Select<br>
	        <a href="###" onclick="cc()"/><font color="blue">Undo</font></a></th>
		    <th>Create Date</th>
		<th>Name</th>
		<th>Experience</th>
		<th>Degree</th>
		<th>Desired Salary</th>
		<th>Action</th>
		  </tr>
	  {section name=custom loop=$resumelist}
		  <tr class="hotline {cycle values="odd,even"}">
		<td><input type="radio" name="postid" value="{$resumelist[custom].re_id}" id="rd{$resumelist[custom].re_id}" {if $resumelist[custom].in_app==1}disabled{/if} >
		{if $resumelist[custom].re_uploadresume != '' && $resumelist[custom].re_uploadresume != '0'}
		<a href="./uploadfiles/resumes/{$resumelist[custom].re_uploadresume}" target="_blank"><img src="images/0153.png" align="absmiddle" /></a>
		{/if}
		{if $resumelist[custom].in_app==1}
		<font color="blue">Submitted</font>
		{/if}
		
		</td>
		<td>{$resumelist[custom].re_regtime}</td>
        <td><a href="resumeaction.php?view=op&id={$resumelist[custom].re_id}">{$resumelist[custom].name}{if $resumelist[custom].re_aliasname!=''}&nbsp;&nbsp;[{$resumelist[custom].re_aliasname}]{/if}</a>&nbsp;&nbsp;&nbsp;{if $resumelist[custom].alias ==1 }<a href="?fid={$resumelist[custom].re_id}" onmouseover="Tip('Click here to see Alias Records of  <font color=red>{$resumelist[custom].name}</font>.', WIDTH, 200,OFFSETY,20, SHADOW, true)"><img src="images/downarrow-1.png" align="absmiddle" /></a>{/if}</td>
		<td>{$resumelist[custom].re_yearexp}</td>
		<td>{$resumelist[custom].re_edulevel}</td>
		<td>${$resumelist[custom].re_desiredpay}</td>
		<td>{if $resumelist[custom].re_fid!=0}<a href="postresumealias.php?action=edit&id={$resumelist[custom].re_id}">{else}<a href="postresume.php?action=edit&id={$resumelist[custom].re_id}&return={$jobarr.jo_id}">{/if}[edit]</a></td>
	      </tr>
	      {sectionelse}
               <tr class="hotline {cycle values="odd,even"}">
                <td colspan="9"><font color=red>No data was found for selected field(s).<br>  Try again.  Please note 'Select All' will search for all available data in that field.</font></td>
               </tr>
	      {/section}
          </table>
		</div>
		<div class="module_box mt_10">
			<div class="m_t"><h2>Include A Message To The Job Poster (Optional):</h2></div>
			<table  class="table_style_noline" width="100%">
			<tbody><tr><td colspan="2">
					<div><input type="hidden" id="re_rccomment" name="app_note" value="" style="display:none" /><input type="hidden" id="re_rccomment___Config" value="" style="display:none" /><iframe id="re_rccomment___Frame" src="FCKeditor/editor/fckeditor.html?InstanceName=re_rccomment&amp;Toolbar=Basic" width="560" height="180" frameborder="0" scrolling="no"></iframe></div>
				</td></tr>
				<tr><td width="30%"><b>Attach existing resume (if available):</b></td><td><input name="app_includeresume" id="app_includresume" type="checkbox" value="1" onclick="return checkDiffResume()"><a href="###" onmouseover="Tip('Check here if you wish to include your candidate\'s resume that is already on file, or upload a different resume below.', WIDTH, 200, SHADOW, true)"><img src="images/icn_question.jpg" border="0" align="absmiddle" style="margin-top:-7px"/></a></td></tr>
				<tr><td valign="top"><b>Or upload another resume:</b><a href="###" onmouseover="Tip('Upload here if you wish to include a different resume.', WIDTH, 200, SHADOW, true)"><img src="images/icn_question.jpg" border="0" align="absmiddle" /></a></td><td><input type="file" id="app_incresume" name="app_incresume" value=""><br>(Only accept doc/docx/txt/pdf files size less than 5MB.)</td></tr>
		 </tbody></table>
		  <div class="t-center"> <input class="bginput button-secondary" type="button" name="preview" value=" Preview " onclick='document.form1.target="_blank";document.form1.action="previewsubmitapplicant.php"; return ckeckapplicant({$jobarr.jo_type}); ' />
				<input type="button" value="Submit Candidate" {if $jobarr.jo_status == "Close"}disabled{/if}  onclick='document.form1.target="";document.form1.action="submitsuccess.php"; return ckeckapplicant({$jobarr.jo_type});' class="button-secondary" /> 
				<input type="button" value="Add Candidate" onclick="location.href='postresume.php?return={$jobarr.jo_id}'" class="button-secondary" />
				<input type="button" value="Cancel" onclick="history.go(-1)" class="button-secondary"/>
			</div>
	</form>
</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</section>
